package com.sunshine.serialport.view;

import java.io.Serializable;

/**
 * @classDescription:
 * @author:xiayingjie
 * @createTime:16/8/6
 */

public class JsonResultExtra extends JsonResult implements Serializable{

    private Object extra;


    public JsonResultExtra(ResultCode resultCode) {
        this.setCode(resultCode.getCode());
        this.setMsg(resultCode.getMsg());
    }

    public JsonResultExtra(ResultCode resultCode, Object data, Object extra) {
        this.setCode(resultCode.getCode());
        this.setMsg(resultCode.getMsg());
        this.setData(data);
        this.setExtra(extra);
    }
    public JsonResultExtra(ResultCode resultCode, Object data) {
        this.setCode(resultCode.getCode());
        this.setMsg(resultCode.getMsg());
        this.setData(data);
    }

    public JsonResultExtra(ResultCode resultCode, String msg) {
        this.setCode(resultCode.getCode());
        this.setMsg(msg);
    }



    public JsonResultExtra(int code, String msg) {
        this.setCode(code);
        this.setMsg(msg);
    }
    public JsonResultExtra(){}

    public Object getExtra() {
        return extra;
    }

    public void setExtra(Object extra) {
        this.extra = extra;
    }
}
